package com.salon.modules.oss.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.salon.modules.oss.entity.QiniuFile;
import com.salon.modules.oss.vo.QiniuFileQueryCriteria;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface QiniuFileMapper extends BaseMapper<QiniuFile> {

    QiniuFile findByKey(@Param("name") String name);

    IPage<QiniuFile> findAll(@Param("criteria") QiniuFileQueryCriteria criteria, Page<Object> page);

    List<QiniuFile> findAll(QiniuFileQueryCriteria criteria);

}
